package com.example.cache_module.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author lihw
 * @Date 2024/5/7 16:39
 */
@Slf4j
@Service
public class TestService {

    @Cacheable(key = "#name", value = "call")
    public String call(String name) {
        log.info("进入service： {}", name);
        return "hello " + name;
    }


}
